package com.situ.hr4.w.service;

import com.situ.hr4.pojo.*;
import com.situ.hr4.w.dao.ZWFBdao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.beans.Transient;
import java.util.List;
import java.util.Map;

@Service
public class ZWFBserviceimpl implements ZWFBservice
{
    @Autowired
    ZWFBdao dao;
    //查询一级结构
    @Override
    public List<ConfigFileFirstKind> cx1() {
        return dao.cx1();
    }

    //通过一级结构id查询二级结构
    @Override
    public List<Map> cx2(int id) {
        return dao.cx2(id);
    }

    //通过二级结构id查询三级结构
    @Override
    public List<Map> cx3(int id) {
        return dao.cx3(id);
    }

    //查询职位分类
    @Override
    public List<ConfigMajorKind> cxzwfl() {
        return dao.cxzwfl();
    }
    //通过职位类型id查询职位名称
    @Override
    public List<ConfigMajor> cxzwmc(int id) {
        return dao.cxzwmc(id);
    }

    //职位发布添加
    @Transient
    public void zwfbtj(EngageMajorRelease eml) {
        dao.zwfbtj(eml);
    }

    //全查
    @Override
    public List<Map> zwfbqc() {
        return dao.zwfbqc();
    }

    //根据修改id查
    @Override
    public Map queryid(int id) {
        return dao.queryid(id);
    }

    @Transient
    //根据id修改
    public void xg(EngageMajorRelease e) {
        dao.xg(e);
    }

    //开事务
    @Transient
    //根据id删除
    @Override
    public void wzwfbsc(int id) {
        dao.wzwfbsc(id);
    }


}
